using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;

namespace MiaProject
{
    class PowerUp : Actor 
    {
        
        public int power;
            
        public PowerUp(): base()
        {   
            this.rotation = 3.0f;
            this.scale = 0.5f;
            this.status = true;
            
        }
        public void update(GameTime gameTime)
        {
            this.rotation += 1.0f * (float)gameTime.ElapsedGameTime.TotalSeconds;
            if(this.rotation > 6.2)
                this.rotation = 0.0f;
        }
        //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        public void draw(Matrix view, Matrix projection,BoundingFrustum frustum)
        {
            this.drawActor(view, projection,frustum);
        }
    }
}
